home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1993…stman Always Clicks Twice / ADC Developer CD (1993-01) (''The Postman Always Clicks Twice'')_iso / Dev.CD 199301.iso / Development Platforms / Apple II / Essentials / MPW IIGS Interfaces / AIIGSIncludes / E16.Window < prev    next >
Encoding:
Text File  |  1992-03-04  |  7.3 KB  |  226 lines  |  [TEXT/MPS ]

  1. ; File:  E16.Window
  2. ;
  3. ;
  4. ; Copyright Apple Computer, Inc. 1986-92
  5. ; All Rights Reserved
  6. ;
  7. ;
  8. paramLenErr EQU $0E01  ; first word of parameter list is the wrong size
  9. allocateErr EQU $0E02  ; unable to allocate window record
  10. taskMaskErr EQU $0E03  ; reserved bits are not clear in wmTaskMask
  11. compileTooLarge EQU $0E04 ; Compiled text is larger than 64 KB
  12. wNoConstraint EQU $0000  ; No constraint on movement.
  13. wHAxisOnly EQU $0001  ; Horizontal axis only.
  14. wVAxisOnly EQU $0002  ; Vertical axis only.
  15. FromDesk EQU $00  ; Subtract region from desktop
  16. ToDesk EQU $1  ; Add region to desktop
  17. GetDesktop EQU $2  ; Get Handle of Desktop region
  18. SetDesktop EQU $3  ; Set Handle of Desktop region
  19. GetDeskPat EQU $4  ; Address of  pattern or drawing routine
  20. SetDeskPat EQU $5  ; Change Address of  pattern or drawing routine
  21. GetVisDesktop EQU $6  ; Get destop region less visible windows.
  22. BackGroundRgn EQU $7  ; For drawing directly on desktop.
  23. CheckForNewDeskMsg EQU $8 ; Force rechecking message #2
  24. toBottom EQU $FFFFFFFE  ; To send window to bottom.
  25. topMost EQU $FFFFFFFF  ; To make window top.
  26. bottomMost EQU $0000  ; To make window bottom.
  27. tmMenuKey EQU $00000001
  28. tmUpdate EQU $00000002
  29. tmFindW EQU $00000004
  30. tmMenuSel EQU $0008
  31. tmOpenNDA EQU $0010
  32. tmSysClick EQU $0020
  33. tmDragW EQU $0040
  34. tmContent EQU $0080
  35. tmClose EQU $0100
  36. tmZoom EQU $0200
  37. tmGrow EQU $0400
  38. tmScroll EQU $0800
  39. tmSpecial EQU $1000
  40. tmCRedraw EQU $2000
  41. tmInactive EQU $4000
  42. tmInfo EQU $8000
  43. tmContentControls EQU $00010000
  44. tmControlKey EQU $00020000
  45. tmControlMenu EQU $00040000
  46. tmMultiClick EQU $00080000
  47. tmIdleEvents EQU $00100000
  48. wNoHit EQU $0000  ; retained for back compatibility. 
  49. inNull EQU $0000  ; retained for back compatibility
  50. inKey EQU $0003  ; retained for back compatibility
  51. inButtDwn EQU $0001  ; retained for back compatibility
  52. inUpdate EQU $0006  ; retained for back compatibility
  53. wInDesk EQU $0010  ; On Desktop
  54. wInMenuBar EQU $0011  ; On system menu bar
  55. wClickCalled EQU $0012  ; system click called
  56. wInContent EQU $0013  ; In content region
  57. wInDrag EQU $0014  ; In drag region
  58. wInGrow EQU $0015  ; In grow region, active window only
  59. wInGoAway EQU $0016  ; In go-away region, active window only
  60. wInZoom EQU $0017  ; In zoom region, active window only
  61. wInInfo EQU $0018  ; In information bar
  62. wInSpecial EQU $0019  ; Item ID selected was 250 - 255
  63. wInDeskItem EQU $001A  ; Item ID selected was 1 - 249
  64. wInFrame EQU $1B  ; in Frame, but not on anything else
  65. wInactMenu EQU $1C  ; 'selection' of inactive menu item
  66. wClosedNDA EQU $001D  ; desk accessory closed
  67. wCalledSysEdit EQU $001E  ; inactive menu item selected
  68. wInSysWindow EQU $8000  ; hi bit set for system windows
  69. wDraw EQU $00  ; Draw window frame command.
  70. wHit EQU $01  ; Hit test command.
  71. wCalcRgns EQU $02  ; Compute regions command.
  72. wNew EQU $03  ; Initialization command.
  73. wDispose EQU $04  ; Dispose command.
  74. wGetDrag EQU 5    ; Return address of outline drawing handler
  75. wGrowFrame EQU 6    ; Draw outline of window being resized
  76. wRecSize EQU 7    ; Return size of additional space neeed in the windrec
  77. wPos EQU 8    ; Return RECT that is the window's portRect
  78. wBehind EQU 9    ; Return where the window should be placed in the list
  79. wCallDefProc EQU 10    ; Generic call to the defproc
  80. fHilited EQU $0001  ; Window is highlighted.
  81. fZoomed EQU $0002  ; Window is zoomed.
  82. fAllocated EQU $0004  ; Window record was allocated.
  83. fCtlTie EQU $0008  ; Window state tied to controls.
  84. fInfo EQU $0010  ; Window has an information bar.
  85. fVis EQU $0020  ; Window is visible.
  86. fQContent EQU $0040
  87. fMove EQU $0080  ; Window is movable.
  88. fZoom EQU $0100  ; Window is zoomable.
  89. fFlex EQU $0200
  90. fGrow EQU $0400  ; Window has grow box.
  91. fBScroll EQU $0800  ; Window has horizontal scroll bar.
  92. fRScroll EQU $1000  ; Window has vertical scroll bar.
  93. fAlert EQU $2000
  94. fClose EQU $4000  ; Window has a close box.
  95. fTitle EQU $8000  ; Window has a title bar.
  96. windSize EQU $00D4  ; Size of WindRec.
  97. wmTaskRecSize EQU $002E  ; Size of WmTaskRec.
  98. wTrackZoom EQU $001F
  99. wHitFrame EQU $0020
  100. wInControl EQU $0021
  101. wInControlMenu EQU $0022
  102. ; offset constants for WindColor
  103. oframeColor EQU 0
  104. otitleColor EQU 2
  105. otBarColor EQU 4
  106. ogrowColor EQU 6
  107. oinfoColor EQU 8
  108. ; offset constants for WindRec
  109. ;owNext EQU 0    <- not included in record returned by toolbox calls
  110. oport EQU 0  ; Window's port
  111. owDefProc EQU oport+170
  112. owrRefCon EQU owDefProc+4
  113. owContDraw EQU owrRefCon+4
  114. owReserved EQU owContDraw+4  ; Space for future expansion
  115. owStrucRgn EQU owReserved+4  ; Region of frame plus content.
  116. owContRgn EQU owStrucRgn+4  ; Content region.
  117. owUpdateRgn EQU owContRgn+4  ; Update region.
  118. owControls EQU owUpdateRgn+4  ; Window's control list.
  119. owFrameCtrls EQU owControls+4  ; Window frame's control list.
  120. owFrame EQU owFrameCtrls+4
  121. ; offset constants for ParamList
  122. oparamLength EQU 0  ; Parameter to NewWindow. 
  123. owFrameBits EQU 2  ; Parameter to NewWindow.
  124. owTitle EQU 4  ; Parameter to NewWindow.
  125. owRefCon EQU 8  ; Parameter to NewWindow.
  126. owZoom EQU 12  ; Parameter to NewWindow.
  127. owColor EQU 20  ; Parameter to NewWindow.
  128. owYOrigin EQU 24  ; Parameter to NewWindow.
  129. owXOrigin EQU 26  ; Parameter to NewWindow.
  130. owDataH EQU 28  ; Parameter to NewWindow.
  131. owDataW EQU 30  ; Parameter to NewWindow.
  132. owMaxH EQU 32  ; Parameter to NewWindow.
  133. owMaxW EQU 34  ; Parameter to NewWindow.
  134. owScrollVer EQU 36  ; Parameter to NewWindow.
  135. owScrollHor EQU 38  ; Parameter to NewWindow.
  136. owPageVer EQU 40  ; Parameter to NewWindow.
  137. owPageHor EQU 42  ; Parameter to NewWindow.
  138. owInfoRefCon EQU 44  ; Parameter to NewWindow.
  139. owInfoHeight EQU 48  ; height of information bar
  140. owFrameDefProc EQU 50  ; Parameter to NewWindow.
  141. owInfoDefProc EQU 54  ; Parameter to NewWindow.
  142. owContDefProc EQU 58  ; Parameter to NewWindow.
  143. owPosition EQU 62  ; Parameter to NewWindow.
  144. owPlane EQU 70  ; Parameter to NewWindow.
  145. owStorage EQU 74  ; Parameter to NewWindow.
  146. ; offset constants for DeskMessageRecord
  147. odmreserved EQU 0
  148. odmmessageType EQU 4
  149. odmdrawType EQU 6
  150.  
  151. ; DoModalWindow flag values
  152. mwMovable EQU $8000
  153. mwUpdateAll EQU $4000
  154. mwDeskAcc EQU $0010
  155. mwIBeam EQU $0008
  156. mwMenuKey EQU $0004
  157. mwMenuSelect EQU $0002
  158. mwNoScrapForLE EQU $0001
  159.  
  160. ; HandleDiskInsert flag values (bit flags)
  161. hdiScan EQU $8000
  162. hdiHandle EQU $4000
  163. hdiUpdate EQU $2000
  164. hdiReportEjects EQU $1000
  165. hdiNoDelay EQU $0800
  166. hdiDupDisk EQU $0400
  167. hdiCheckTapeDrives EQU $0200
  168. hdiUnreadable EQU $0100
  169. hdiMarkOffline EQU $0001
  170.  
  171. ; HandleDiskInsert result flag values (bit flags)
  172. hdiFormatted EQU $0002
  173. hdiEjection EQU $0001
  174.  
  175. ; constants for AlertWindow alertFlags
  176. awCString EQU $0000
  177. awPString EQU $0001
  178. awPointer EQU $0000
  179. awHandle EQU $0002
  180. awResource EQU $0004
  181. awTextFullWidth EQU $0008
  182. awForceBeep EQU $0010
  183. awButtonLayout EQU $0020
  184. awNoDevScan EQU $0040
  185. awNoDisposeRes EQU $0080
  186. awWatchForDisk EQU $0100
  187. awIconIsResource EQU $0200
  188. awFullColor EQU $0400
  189.  
  190. ; custom defproc dRequest codes (from TN #42)
  191. wSetOrgMask EQU 0
  192. wSetMaxGrow EQU 1
  193. wSetScroll EQU 2
  194. wSetPage EQU 3
  195. wSetInfoRefCon EQU 4
  196. wSetInfoDraw EQU 5
  197. wSetOrigin EQU 6
  198. wSetDataSize EQU 7
  199. wSetZoomRect EQU 8
  200. wSetTitle EQU 9
  201. wSetColorTable EQU 10
  202. wSetFrameFlag EQU 11
  203. wGetOrgMask EQU 12
  204. wGetMaxGrow EQU 13
  205. wGetScroll EQU 14
  206. wGetPage EQU 15
  207. wGetInfoRefCon EQU 16
  208. wGetInfoDraw EQU 17
  209. wGetOrigin EQU 18
  210. wGetDataSize EQU 19
  211. wGetZoomRect EQU 20
  212. wGetTitle EQU 21
  213. wGetColorTable EQU 22
  214. wGetFrameFlag EQU 23
  215. wGetInfoRect EQU 24
  216. wGetDrawInfo EQU 25
  217. wGetStartInfoDraw EQU 26
  218. wGetEndInfoDraw EQU 27
  219. wZoomWindow EQU 28
  220. wStartDrawing EQU 29
  221. wStartMove EQU 30
  222. wStartGrow EQU 31
  223. wNewSize EQU 32
  224. wTask EQU 33
  225.  
  226.